How is it possible to write the compiler of a programming language with that language itself [closed]
Posted
by
tugberk
on Programmers
See other posts from Programmers
or by tugberk
Published on 2012-10-03T15:53:55Z
Indexed on
2012/10/03
21:54 UTC
Read the original article
Hit count: 216
Possible Duplicate:
How could the first C++ compiler be written in C++?
You probably heard that Microsoft released a new language called TypeScript which is a the typed superset of JavaScript.
The most interesting thing that makes me wonder is the fact that its compiler writen in TypeScript itself.
Call me ignorant but I really couldn't figure out in my head how that is possible. This is just like chicken and egg problem in my head because there is no compiler to compile TypeScript's compiler in the first place. How is it possible to write a compiler of the compiler of a programming language with that language?
© Programmers or respective owner